package com.qijia.travel.domain.example;

import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class TouristGroupDetailExample extends BaseExample{

	protected String orderByClause;
	protected List<Criteria> oredCriteria;

	public TouristGroupDetailExample() {
		oredCriteria = new ArrayList<Criteria>();
	}

	protected TouristGroupDetailExample(TouristGroupDetailExample example) {
		this.orderByClause = example.orderByClause;
		this.oredCriteria = example.oredCriteria;
	}

	public void setOrderByClause(String orderByClause) {
		this.orderByClause = orderByClause;
	}

	public String getOrderByClause() {
		return orderByClause;
	}

	public List<Criteria> getOredCriteria() {
		return oredCriteria;
	}

	public void or(Criteria criteria) {
		oredCriteria.add(criteria);
	}

	public Criteria createCriteria() {
		Criteria criteria = createCriteriaInternal();
		if (oredCriteria.size() == 0) {
			oredCriteria.add(criteria);
		}
		return criteria;
	}

	protected Criteria createCriteriaInternal() {
		Criteria criteria = new Criteria();
		return criteria;
	}

	public void clear() {
		oredCriteria.clear();
	}

	public static class Criteria {
		protected List<String> criteriaWithoutValue;
		protected List<Map<String, Object>> criteriaWithSingleValue;
		protected List<Map<String, Object>> criteriaWithListValue;
		protected List<Map<String, Object>> criteriaWithBetweenValue;

		protected Criteria() {
			super();
			criteriaWithoutValue = new ArrayList<String>();
			criteriaWithSingleValue = new ArrayList<Map<String, Object>>();
			criteriaWithListValue = new ArrayList<Map<String, Object>>();
			criteriaWithBetweenValue = new ArrayList<Map<String, Object>>();
		}

		public boolean isValid() {
			return criteriaWithoutValue.size() > 0
					|| criteriaWithSingleValue.size() > 0
					|| criteriaWithListValue.size() > 0
					|| criteriaWithBetweenValue.size() > 0;
		}

		public List<String> getCriteriaWithoutValue() {
			return criteriaWithoutValue;
		}

		public List<Map<String, Object>> getCriteriaWithSingleValue() {
			return criteriaWithSingleValue;
		}

		public List<Map<String, Object>> getCriteriaWithListValue() {
			return criteriaWithListValue;
		}

		public List<Map<String, Object>> getCriteriaWithBetweenValue() {
			return criteriaWithBetweenValue;
		}

		protected void addCriterion(String condition) {
			if (condition == null) {
				throw new RuntimeException("Value for condition cannot be null");
			}
			criteriaWithoutValue.add(condition);
		}

		protected void addCriterion(String condition, Object value,
				String property) {
			if (value == null) {
				throw new RuntimeException("Value for " + property
						+ " cannot be null");
			}
			Map<String, Object> map = new HashMap<String, Object>();
			map.put("condition", condition);
			map.put("value", value);
			criteriaWithSingleValue.add(map);
		}

		protected void addCriterion(String condition,
				List<? extends Object> values, String property) {
			if (values == null || values.size() == 0) {
				throw new RuntimeException("Value list for " + property
						+ " cannot be null or empty");
			}
			Map<String, Object> map = new HashMap<String, Object>();
			map.put("condition", condition);
			map.put("values", values);
			criteriaWithListValue.add(map);
		}

		protected void addCriterion(String condition, Object value1,
				Object value2, String property) {
			if (value1 == null || value2 == null) {
				throw new RuntimeException("Between values for " + property
						+ " cannot be null");
			}
			List<Object> list = new ArrayList<Object>();
			list.add(value1);
			list.add(value2);
			Map<String, Object> map = new HashMap<String, Object>();
			map.put("condition", condition);
			map.put("values", list);
			criteriaWithBetweenValue.add(map);
		}

		public Criteria andTouristGroupDetailIdIsNull() {
            addCriterion("tourist_group_detail_id is null");
            return this;
        }

        public Criteria andTouristGroupDetailIdIsNotNull() {
            addCriterion("tourist_group_detail_id is not null");
            return this;
        }

        public Criteria andTouristGroupDetailIdEqualTo(Integer value) {
            addCriterion("tourist_group_detail_id =", value, "touristGroupDetailId");
            return this;
        }

        public Criteria andTouristGroupDetailIdNotEqualTo(Integer value) {
            addCriterion("tourist_group_detail_id <>", value, "touristGroupDetailId");
            return this;
        }

        public Criteria andTouristGroupDetailIdGreaterThan(Integer value) {
            addCriterion("tourist_group_detail_id >", value, "touristGroupDetailId");
            return this;
        }

        public Criteria andTouristGroupDetailIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("tourist_group_detail_id >=", value, "touristGroupDetailId");
            return this;
        }

        public Criteria andTouristGroupDetailIdLessThan(Integer value) {
            addCriterion("tourist_group_detail_id <", value, "touristGroupDetailId");
            return this;
        }

        public Criteria andTouristGroupDetailIdLessThanOrEqualTo(Integer value) {
            addCriterion("tourist_group_detail_id <=", value, "touristGroupDetailId");
            return this;
        }

        public Criteria andTouristGroupDetailIdIn(List<Integer> values) {
            addCriterion("tourist_group_detail_id in", values, "touristGroupDetailId");
            return this;
        }

        public Criteria andTouristGroupDetailIdNotIn(List<Integer> values) {
            addCriterion("tourist_group_detail_id not in", values, "touristGroupDetailId");
            return this;
        }

        public Criteria andTouristGroupDetailIdBetween(Integer value1, Integer value2) {
            addCriterion("tourist_group_detail_id between", value1, value2, "touristGroupDetailId");
            return this;
        }

        public Criteria andTouristGroupDetailIdNotBetween(Integer value1, Integer value2) {
            addCriterion("tourist_group_detail_id not between", value1, value2, "touristGroupDetailId");
            return this;
        }

        public Criteria andTgdTouristGroupSnIsNull() {
            addCriterion("tgd_tourist_group_sn is null");
            return this;
        }

        public Criteria andTgdTouristGroupSnIsNotNull() {
            addCriterion("tgd_tourist_group_sn is not null");
            return this;
        }

        public Criteria andTgdTouristGroupSnEqualTo(String value) {
            addCriterion("tgd_tourist_group_sn =", value, "tgdTouristGroupSn");
            return this;
        }

        public Criteria andTgdTouristGroupSnNotEqualTo(String value) {
            addCriterion("tgd_tourist_group_sn <>", value, "tgdTouristGroupSn");
            return this;
        }

        public Criteria andTgdTouristGroupSnGreaterThan(String value) {
            addCriterion("tgd_tourist_group_sn >", value, "tgdTouristGroupSn");
            return this;
        }

        public Criteria andTgdTouristGroupSnGreaterThanOrEqualTo(String value) {
            addCriterion("tgd_tourist_group_sn >=", value, "tgdTouristGroupSn");
            return this;
        }

        public Criteria andTgdTouristGroupSnLessThan(String value) {
            addCriterion("tgd_tourist_group_sn <", value, "tgdTouristGroupSn");
            return this;
        }

        public Criteria andTgdTouristGroupSnLessThanOrEqualTo(String value) {
            addCriterion("tgd_tourist_group_sn <=", value, "tgdTouristGroupSn");
            return this;
        }

        public Criteria andTgdTouristGroupSnLike(String value) {
            addCriterion("tgd_tourist_group_sn like", value, "tgdTouristGroupSn");
            return this;
        }

        public Criteria andTgdTouristGroupSnNotLike(String value) {
            addCriterion("tgd_tourist_group_sn not like", value, "tgdTouristGroupSn");
            return this;
        }

        public Criteria andTgdTouristGroupSnIn(List<String> values) {
            addCriterion("tgd_tourist_group_sn in", values, "tgdTouristGroupSn");
            return this;
        }

        public Criteria andTgdTouristGroupSnNotIn(List<String> values) {
            addCriterion("tgd_tourist_group_sn not in", values, "tgdTouristGroupSn");
            return this;
        }

        public Criteria andTgdTouristGroupSnBetween(String value1, String value2) {
            addCriterion("tgd_tourist_group_sn between", value1, value2, "tgdTouristGroupSn");
            return this;
        }

        public Criteria andTgdTouristGroupSnNotBetween(String value1, String value2) {
            addCriterion("tgd_tourist_group_sn not between", value1, value2, "tgdTouristGroupSn");
            return this;
        }

        public Criteria andTgdGuideIdIsNull() {
            addCriterion("tgd_guide_id is null");
            return this;
        }

        public Criteria andTgdGuideIdIsNotNull() {
            addCriterion("tgd_guide_id is not null");
            return this;
        }

        public Criteria andTgdGuideIdEqualTo(Integer value) {
            addCriterion("tgd_guide_id =", value, "tgdGuideId");
            return this;
        }

        public Criteria andTgdGuideIdNotEqualTo(Integer value) {
            addCriterion("tgd_guide_id <>", value, "tgdGuideId");
            return this;
        }

        public Criteria andTgdGuideIdGreaterThan(Integer value) {
            addCriterion("tgd_guide_id >", value, "tgdGuideId");
            return this;
        }

        public Criteria andTgdGuideIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("tgd_guide_id >=", value, "tgdGuideId");
            return this;
        }

        public Criteria andTgdGuideIdLessThan(Integer value) {
            addCriterion("tgd_guide_id <", value, "tgdGuideId");
            return this;
        }

        public Criteria andTgdGuideIdLessThanOrEqualTo(Integer value) {
            addCriterion("tgd_guide_id <=", value, "tgdGuideId");
            return this;
        }

        public Criteria andTgdGuideIdIn(List<Integer> values) {
            addCriterion("tgd_guide_id in", values, "tgdGuideId");
            return this;
        }

        public Criteria andTgdGuideIdNotIn(List<Integer> values) {
            addCriterion("tgd_guide_id not in", values, "tgdGuideId");
            return this;
        }

        public Criteria andTgdGuideIdBetween(Integer value1, Integer value2) {
            addCriterion("tgd_guide_id between", value1, value2, "tgdGuideId");
            return this;
        }

        public Criteria andTgdGuideIdNotBetween(Integer value1, Integer value2) {
            addCriterion("tgd_guide_id not between", value1, value2, "tgdGuideId");
            return this;
        }

        public Criteria andTgdGuideNameIsNull() {
            addCriterion("tgd_guide_name is null");
            return this;
        }

        public Criteria andTgdGuideNameIsNotNull() {
            addCriterion("tgd_guide_name is not null");
            return this;
        }

        public Criteria andTgdGuideNameEqualTo(String value) {
            addCriterion("tgd_guide_name =", value, "tgdGuideName");
            return this;
        }

        public Criteria andTgdGuideNameNotEqualTo(String value) {
            addCriterion("tgd_guide_name <>", value, "tgdGuideName");
            return this;
        }

        public Criteria andTgdGuideNameGreaterThan(String value) {
            addCriterion("tgd_guide_name >", value, "tgdGuideName");
            return this;
        }

        public Criteria andTgdGuideNameGreaterThanOrEqualTo(String value) {
            addCriterion("tgd_guide_name >=", value, "tgdGuideName");
            return this;
        }

        public Criteria andTgdGuideNameLessThan(String value) {
            addCriterion("tgd_guide_name <", value, "tgdGuideName");
            return this;
        }

        public Criteria andTgdGuideNameLessThanOrEqualTo(String value) {
            addCriterion("tgd_guide_name <=", value, "tgdGuideName");
            return this;
        }

        public Criteria andTgdGuideNameLike(String value) {
            addCriterion("tgd_guide_name like", value, "tgdGuideName");
            return this;
        }

        public Criteria andTgdGuideNameNotLike(String value) {
            addCriterion("tgd_guide_name not like", value, "tgdGuideName");
            return this;
        }

        public Criteria andTgdGuideNameIn(List<String> values) {
            addCriterion("tgd_guide_name in", values, "tgdGuideName");
            return this;
        }

        public Criteria andTgdGuideNameNotIn(List<String> values) {
            addCriterion("tgd_guide_name not in", values, "tgdGuideName");
            return this;
        }

        public Criteria andTgdGuideNameBetween(String value1, String value2) {
            addCriterion("tgd_guide_name between", value1, value2, "tgdGuideName");
            return this;
        }

        public Criteria andTgdGuideNameNotBetween(String value1, String value2) {
            addCriterion("tgd_guide_name not between", value1, value2, "tgdGuideName");
            return this;
        }

        public Criteria andTgdStartDtIsNull() {
            addCriterion("tgd_start_dt is null");
            return this;
        }

        public Criteria andTgdStartDtIsNotNull() {
            addCriterion("tgd_start_dt is not null");
            return this;
        }

        public Criteria andTgdStartDtEqualTo(Date value) {
            addCriterion("tgd_start_dt =", value, "tgdStartDt");
            return this;
        }

        public Criteria andTgdStartDtNotEqualTo(Date value) {
            addCriterion("tgd_start_dt <>", value, "tgdStartDt");
            return this;
        }

        public Criteria andTgdStartDtGreaterThan(Date value) {
            addCriterion("tgd_start_dt >", value, "tgdStartDt");
            return this;
        }

        public Criteria andTgdStartDtGreaterThanOrEqualTo(Date value) {
            addCriterion("tgd_start_dt >=", value, "tgdStartDt");
            return this;
        }

        public Criteria andTgdStartDtLessThan(Date value) {
            addCriterion("tgd_start_dt <", value, "tgdStartDt");
            return this;
        }

        public Criteria andTgdStartDtLessThanOrEqualTo(Date value) {
            addCriterion("tgd_start_dt <=", value, "tgdStartDt");
            return this;
        }

        public Criteria andTgdStartDtIn(List<Date> values) {
            addCriterion("tgd_start_dt in", values, "tgdStartDt");
            return this;
        }

        public Criteria andTgdStartDtNotIn(List<Date> values) {
            addCriterion("tgd_start_dt not in", values, "tgdStartDt");
            return this;
        }

        public Criteria andTgdStartDtBetween(Date value1, Date value2) {
            addCriterion("tgd_start_dt between", value1, value2, "tgdStartDt");
            return this;
        }

        public Criteria andTgdStartDtNotBetween(Date value1, Date value2) {
            addCriterion("tgd_start_dt not between", value1, value2, "tgdStartDt");
            return this;
        }

        public Criteria andTgdContinuedDateIsNull() {
            addCriterion("tgd_continued_date is null");
            return this;
        }

        public Criteria andTgdContinuedDateIsNotNull() {
            addCriterion("tgd_continued_date is not null");
            return this;
        }

        public Criteria andTgdContinuedDateEqualTo(Float value) {
            addCriterion("tgd_continued_date =", value, "tgdContinuedDate");
            return this;
        }

        public Criteria andTgdContinuedDateNotEqualTo(Float value) {
            addCriterion("tgd_continued_date <>", value, "tgdContinuedDate");
            return this;
        }

        public Criteria andTgdContinuedDateGreaterThan(Float value) {
            addCriterion("tgd_continued_date >", value, "tgdContinuedDate");
            return this;
        }

        public Criteria andTgdContinuedDateGreaterThanOrEqualTo(Float value) {
            addCriterion("tgd_continued_date >=", value, "tgdContinuedDate");
            return this;
        }

        public Criteria andTgdContinuedDateLessThan(Float value) {
            addCriterion("tgd_continued_date <", value, "tgdContinuedDate");
            return this;
        }

        public Criteria andTgdContinuedDateLessThanOrEqualTo(Float value) {
            addCriterion("tgd_continued_date <=", value, "tgdContinuedDate");
            return this;
        }

        public Criteria andTgdContinuedDateIn(List<Float> values) {
            addCriterion("tgd_continued_date in", values, "tgdContinuedDate");
            return this;
        }

        public Criteria andTgdContinuedDateNotIn(List<Float> values) {
            addCriterion("tgd_continued_date not in", values, "tgdContinuedDate");
            return this;
        }

        public Criteria andTgdContinuedDateBetween(Float value1, Float value2) {
            addCriterion("tgd_continued_date between", value1, value2, "tgdContinuedDate");
            return this;
        }

        public Criteria andTgdContinuedDateNotBetween(Float value1, Float value2) {
            addCriterion("tgd_continued_date not between", value1, value2, "tgdContinuedDate");
            return this;
        }

        public Criteria andTgdActualContinuedDateIsNull() {
            addCriterion("tgd_actual_continued_date is null");
            return this;
        }

        public Criteria andTgdActualContinuedDateIsNotNull() {
            addCriterion("tgd_actual_continued_date is not null");
            return this;
        }

        public Criteria andTgdActualContinuedDateEqualTo(Float value) {
            addCriterion("tgd_actual_continued_date =", value, "tgdActualContinuedDate");
            return this;
        }

        public Criteria andTgdActualContinuedDateNotEqualTo(Float value) {
            addCriterion("tgd_actual_continued_date <>", value, "tgdActualContinuedDate");
            return this;
        }

        public Criteria andTgdActualContinuedDateGreaterThan(Float value) {
            addCriterion("tgd_actual_continued_date >", value, "tgdActualContinuedDate");
            return this;
        }

        public Criteria andTgdActualContinuedDateGreaterThanOrEqualTo(Float value) {
            addCriterion("tgd_actual_continued_date >=", value, "tgdActualContinuedDate");
            return this;
        }

        public Criteria andTgdActualContinuedDateLessThan(Float value) {
            addCriterion("tgd_actual_continued_date <", value, "tgdActualContinuedDate");
            return this;
        }

        public Criteria andTgdActualContinuedDateLessThanOrEqualTo(Float value) {
            addCriterion("tgd_actual_continued_date <=", value, "tgdActualContinuedDate");
            return this;
        }

        public Criteria andTgdActualContinuedDateIn(List<Float> values) {
            addCriterion("tgd_actual_continued_date in", values, "tgdActualContinuedDate");
            return this;
        }

        public Criteria andTgdActualContinuedDateNotIn(List<Float> values) {
            addCriterion("tgd_actual_continued_date not in", values, "tgdActualContinuedDate");
            return this;
        }

        public Criteria andTgdActualContinuedDateBetween(Float value1, Float value2) {
            addCriterion("tgd_actual_continued_date between", value1, value2, "tgdActualContinuedDate");
            return this;
        }

        public Criteria andTgdActualContinuedDateNotBetween(Float value1, Float value2) {
            addCriterion("tgd_actual_continued_date not between", value1, value2, "tgdActualContinuedDate");
            return this;
        }
        public Criteria andTgdEndDtIsNull() {
            addCriterion("tgd_end_dt is null");
            return this;
        }

        public Criteria andTgdEndDtIsNotNull() {
            addCriterion("tgd_end_dt is not null");
            return this;
        }

        public Criteria andTgdEndDtEqualTo(Date value) {
            addCriterion("tgd_end_dt =", value, "tgdEndDt");
            return this;
        }

        public Criteria andTgdEndDtNotEqualTo(Date value) {
            addCriterion("tgd_end_dt <>", value, "tgdEndDt");
            return this;
        }

        public Criteria andTgdEndDtGreaterThan(Date value) {
            addCriterion("tgd_end_dt >", value, "tgdEndDt");
            return this;
        }

        public Criteria andTgdEndDtGreaterThanOrEqualTo(Date value) {
            addCriterion("tgd_end_dt >=", value, "tgdEndDt");
            return this;
        }

        public Criteria andTgdEndDtLessThan(Date value) {
            addCriterion("tgd_end_dt <", value, "tgdEndDt");
            return this;
        }

        public Criteria andTgdEndDtLessThanOrEqualTo(Date value) {
            addCriterion("tgd_end_dt <=", value, "tgdEndDt");
            return this;
        }

        public Criteria andTgdEndDtIn(List<Date> values) {
            addCriterion("tgd_end_dt in", values, "tgdEndDt");
            return this;
        }

        public Criteria andTgdEndDtNotIn(List<Date> values) {
            addCriterion("tgd_end_dt not in", values, "tgdEndDt");
            return this;
        }

        public Criteria andTgdEndDtBetween(Date value1, Date value2) {
            addCriterion("tgd_end_dt between", value1, value2, "tgdEndDt");
            return this;
        }

        public Criteria andTgdEndDtNotBetween(Date value1, Date value2) {
            addCriterion("tgd_end_dt not between", value1, value2, "tgdEndDt");
            return this;
        }
	}
}